#ifndef URLTABLE_H
#define URLTABLE_H

#include <QWidget>
#include <QSqlTableModel>
#include "downloadtask.h"

class UrlTable : public QWidget
{
    Q_OBJECT
public:
    explicit UrlTable(QString dbTableName, QStringList dbTableColumn, QStringList dbTableColumnType,
                      QWidget *parent = 0);

    int rowCount();
    void addRow(DownloadTask *task);
    //QString pathForTask(int taskIndex);
    //QString urlForTask(int taskIndex);
    
signals:
    
public slots:

private:
    QSqlTableModel *model;
    
};

#endif // URLTABLE_H
